import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { VideoEnum } from '../video/video.enum';

@Entity()
export class VideoLibrary {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'video_id' })
  video_id: string;

  @Column({ name: 'video_url' })
  video_url: string;

  @Column({ name: 'video_cover' })
  video_cover: string;

  @Column({ name: 'create_time' })
  create_time: Date;

  @Column({ name: 'update_time' })
  update_time: Date;

  @Column({ name: 'video_ratio' })
  video_ratio: string;

  @Column({ name: 'ic_group' })
  ic_group: Number;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'check' })
  check: Number;

  @Column({ name: 'check_time' })
  check_time: Date;

  @Column({ name: 'type' })
  type: VideoEnum;

  @Column({ name: 'filemd5' })
  filemd5: string;

  @Column({ name: 'trace_id' })
  trace_id: string;

}
